package edu.megatrend.fkn.rsw.ocenjivanje.servlets;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Servlet implementation class Obaveze
 */
public class Obaveze extends HttpServlet {
	private static final long serialVersionUID = 1L;
       
    /**
     * @see HttpServlet#HttpServlet()
     */
    public Obaveze() {
        super();
        // TODO Auto-generated constructor stub
    }

	/**
	 * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		
			response.setContentType("text/html");
			PrintWriter out=response.getWriter();
			String body="<H1>Predispitne obaveze</H1>"
			+ "<form name=\"input\" action=\"UpisatiGdeSeSalje\" method=\"get\">"
			+ "<p>Datum: </p>"
			+ "<form action=\"\">" 
			+ "<input type=\"text\" name=\"datum\" /><br />"
			+ "<p>Dodajte predispitu obvezu: </p>"
			+ "</form>"
			+ "<form action=\"\">"
			+ "<select>"
			+ "<option value=\"predmet\">nema predmeta</option>"
			+ "</select>"
			+ "</form>"		
			+ "<form action=\"\">"
			+ "<select>"
			+ "<option value=\"obaveza\">nema obaveze</option>"
			+ "</select>"
			+ "</form>"
			+ "<p>Izaberite studenta: </p>"
			+ "<form action=\"\">"
			+ "<select>"
			+ "<option value=\"student\">nema studenata</option>"
			+ "</select>"
			+ "</form>"
			
			
			+ "</form>"
			+ "<table width=\"auto\" border=\"3\">"
			+ "<tr>"
			
			+ "<th>Broj indeksa</th>"
			+ "<th>Obaveze</th>"
			+ "<th>Obaveze</th>"
			+ "<th>Obaveze</th>"
			
				
				
				+ "<tr>"
			
				+ "<td> <input type=\"text\" value=\"\"/> </td>"
				+ "<th> <input type=\"text\" value=\"\"/> </th>"
				+ "<th> <input type=\"text\" value=\"\"/> </th>"
				+ "<th> <input type=\"text\" value=\"\"/> </th>"
				+ "</tr>"
			
			
				+ "</table>" 
			
			
			+ "<input type=\"submit\" value=\"Submit\" />";
			
			out.println(body);
	}
	

	/**
	 * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
	}

}
